package com.sh.weblogspringboot.admin.convert;

import com.sh.weblogspringboot.admin.vo.article.FindArticleDetailRspVO;
import com.sh.weblogspringboot.common.domain.dos.ArticleDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author songHai
 * @Classname ArticleDetailConvert
 * @Description
 * @Date 2025/4/9 21:51
 */
@Mapper
public interface ArticleDetailConvert {
    /**
     * 初始化 convert 实例
     */
    ArticleDetailConvert INSTANCE = Mappers.getMapper(ArticleDetailConvert.class);

    /**
     * 将 DO 转化为 VO
     *
     * @param articleDO
     * @return
     */
    FindArticleDetailRspVO convertDO2VO(ArticleDO articleDO);
}
